package com.moli.iov.admin.web.controller;

//import com.moli.iov.admin.component.WebSocketServerHandler;
import com.moli.iov.rest.RestResponse;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * </p>
 *
 * @author zql
 * @since 2019/10/15 12:02
 */
@RestController
public class MsgController {

//  @Autowired
//  private WebSocketServerHandler wsHandler;

  @RequestMapping("/sendMsg/{sid}/{message}")
  public RestResponse sendMsg(@PathVariable("sid") String sid, @PathVariable("message") String message) throws IOException {
//    wsHandler.sendMessage(sid, message);
    return RestResponse.success(message);
  }

}
